package com.hand.demo.infra.repository.impl;

import com.hand.demo.domain.entity.Example;
import com.hand.demo.domain.repository.ExampleRepository;
import com.hand.demo.infra.mapper.ExampleMapper;
import org.hzero.mybatis.base.impl.BaseRepositoryImpl;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * Repository Impl
 */
@Repository
public class ExampleRepositoryImpl extends BaseRepositoryImpl<Example> implements ExampleRepository {
    @Resource
    private ExampleMapper exampleMapper;
    @Override
    public List<Example> queryAllExampleList() {
        return exampleMapper.selectAllExampleList();
    }
}
